const server = require('./server');
const router = require('./router');
const requestHandlers = require('./requestHandlers');

var handle = {}
handle["/"] = requestHandlers.start;
handle["/start"] = requestHandlers.start;
handle["/upload"] = requestHandlers.upload;
handle["/show"] = requestHandlers.show;

//使用module.exports导出方式调用start()
// const server = new start();

//使用exports导出方式调用start()
server.start(router.route, handle);